package cn.edu.zzuli.log;

import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class Log implements MethodBeforeAdvice {

    //method 要执行的目标方法
    //objects 方法参数
    //target 目标对象
    public void before(Method method, Object[] objects, Object o) throws Throwable {
        System.out.println(o.getClass().getName()+ "的"+ method.getName() + "被执行了");
    }
}
